Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds three different strategies for generating fuzzing harnesses via the
template
command. Related to #37The three modes are:
simple
- The fuzzing harness will be generated with all of the state-changing functions from the target contracts. All function calls are performed directly, with the harness contract as themsg.sender
.prank
- Similar tosimple
mode, with the difference that function calls are made from different users by usinghevm.prank()
. The users can be defined in the configuration file as"actors": ["0xb4b3", "0xb0b", ...]
actor
-Actor
contracts will be generated and all harness function calls will be proxied through these contracts. TheActor
contracts can be considered as users of the target contracts and the functions included in these actors can be filtered by modifier, external calls, or bypayable
. This allows for granular control over user capabilities.Changes
--mode
to thetemplate
command. Added three modes:simple
,prank
, andactor